module.exports = options => {
  return async (req, res, next) => {
    const {resource} =req.params;
    req.Service = require(`../service/${resource}`);
    next();
  }
}